
using AutoMapper;
using Yozeev.BusinessLogic;
using Yozeev.BusinessLogic.Dtos;
using Yozeev.BusinessLogic.TicketLogic.Dtos;

namespace Yozeev.BusinessLogic.Mapper
{

	/// <summary>
    /// 配置Activity的AutoMapper
    /// </summary>
	internal static class ActivityMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap <Activity,ActivityListDto>();
            configuration.CreateMap <ActivityListDto,Activity>();

            configuration.CreateMap <ActivityEditDto,Activity>();
            configuration.CreateMap <Activity,ActivityEditDto>();

            configuration.CreateMap<Activity, AccountDetailDto>().ReverseMap();
        }
	}
}
